package io.renren.modules.ProjectControl.ProcessSchedule.Service.pro.iml;

import io.renren.modules.ProjectControl.ProcessSchedule.Service.pro.ProWorkOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

@Service
@RefreshScope
public class ProWorkOrderServiceImpl implements ProWorkOrderService {


    @Autowired
    private RestTemplate restTemplate;
    @Value("${project.p3location}")
    String p3KtgLocation;

    @Override
    public String list() {
        return restTemplate.getForObject(p3KtgLocation+"/mes/pro/workorder/list",String.class);
    }
}
